<!--
 * @Author: your name
 * @Date: 2021-01-04 10:20:01
 * @LastEditTime: 2021-01-04 11:02:01
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \basiccss\fudong\fudong1.html
-->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动布局</title>
    <style>
        div{
            width: 150px;
            height: 150px;
        }
        div:first-of-type{
            border: solid 2px red;
        }
        div:last-of-type{
            background: green;
            float: left;
        }
        
    </style>
    <script>
        //
    </script>
</head>
<body>
    <div></div>
    <div></div>
</body>
</html>